package com.scsj.cloud.quartz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/** 
 * @ClassName:      QuartzServerApplication 
 * @Description:    QuartzServerApplication Quartz 任务调度
 * @author          caoxiubin
 * @date            2018年5月10日 下午2:29:12 
*/
@SpringBootApplication
@MapperScan(basePackages="com.scsj.cloud.**.dao")
@ComponentScan(basePackages = { "com.scsj.cloud" })
@EntityScan(basePackages = "com.scsj.cloud.**.model")
public class QuartzServerApplication {
	
	public static void main(String[] args) {
        SpringApplication.run(QuartzServerApplication.class, args);
    }
	
	@Bean
	@LoadBalanced
	RestTemplate restTemplate() {
		return new RestTemplate();
	}
	
	

}
